﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Create.aspx.cs" Inherits="CustomerContactSystem.WebForms.Admin.Users.Create" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h1>Create User</h1>
<fieldset id="custdetails">
    <legend>User Details:</legend>
    <asp:Label ID="ErrorMsg" runat="server" CssClass="error"></asp:Label>

    <asp:Label ID="DepartmentListCaption" runat="server" Text="Department:" AssociatedControlID="DepartmentList"></asp:Label>
    <asp:dropdownlist id="DepartmentList" runat="server"></asp:dropdownlist>
        
    <asp:Label ID="GroupListCaption" runat="server" Text="Group:" AssociatedControlID="GroupList"></asp:Label>
    <asp:dropdownlist id="GroupList" runat="server"></asp:dropdownlist>

    <asp:label ID="DisplayNameCaption" runat="server" Text="Name to Display:" AssociatedControlID="DisplayName"></asp:label>
    <asp:TextBox ID="DisplayName" runat="server" MaxLength="50"></asp:TextBox>
        
    <asp:label ID="EmailCaption" runat="server" Text="Email Address:" AssociatedControlID="Email"></asp:label>
    <asp:TextBox ID="Email" runat="server" MaxLength="250"></asp:TextBox>

    <asp:label ID="UsernameCaption" runat="server" Text="Username:" AssociatedControlID="Username"></asp:label>
    <asp:TextBox ID="Username" runat="server" MaxLength="20"></asp:TextBox>

    <asp:label ID="PasswordCaption" runat="server" Text="Password (max. 12):" AssociatedControlID="Password"></asp:label>
    <asp:TextBox ID="Password" runat="server" TextMode="Password" MaxLength="12"></asp:TextBox>

    <asp:label ID="Password2Caption" runat="server" Text="Password again:" AssociatedControlID="Password2"></asp:label>
    <asp:TextBox ID="Password2" runat="server" TextMode="Password" MaxLength="12"></asp:TextBox>
 
    <asp:label ID="FrontLineCaption" runat="server" Text="Front Line?:" AssociatedControlID="FrontLine"></asp:label>
    <asp:checkbox ID="FrontLine" runat="server"></asp:checkbox>

    <asp:label ID="AreaCoveredCaption" runat="server" Text="Area Covered:" AssociatedControlID="AreaCovered"></asp:label>
    <asp:TextBox ID="AreaCovered" runat="server" MaxLength="50"></asp:TextBox>
</fieldset>
<fieldset>
    <legend>Roles:</legend>
    <asp:Repeater ID="RoleList" runat="server">
        <ItemTemplate>
                <asp:CheckBox ID="RoleChk" runat="server" Text='<%# Eval("RoleName") %>' TextAlign="Left" />
        </ItemTemplate>
    </asp:Repeater>
</fieldset>
<fieldset>
    <asp:Button ID="CreateNewUser" runat="server" Text="Create User" CssClass="submit" OnClick="CreateNewUserClick" />
</fieldset>    
</asp:Content>
